package com.geekgo.gges.model;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * Created by Administrator on 2018/4/28.
 */
@Document(indexName = "xiequan",type = "city")
public class City implements Serializable{

    private static final long serialVersionUID = -1L;

    @Id
    private Long id;
    /**
     * 城市名称
     */
    private String name;
    private Long provinceid;
    private String code;
    /**
     * 描述
     */
    private String description;
    /**
     * 城市评分
     */
    private Integer score;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getProvinceid() {
        return provinceid;
    }

    public void setProvinceid(Long provinceid) {
        this.provinceid = provinceid;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "City{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", provinceid=" + provinceid +
                ", code='" + code + '\'' +
                ", description='" + description + '\'' +
                ", score=" + score +
                '}';
    }
}
